Added PostgreSQL query for index