SQL queries to create indexes on values