Postgresql Find Index Of Array Matlab Drive