changed to includes method for SQL in projects index
changed to join and aliases for DB