Postgresql Find In Array Python Practice