Postgresql Get Index Of Array Python Vs List