Removed backticks from query

Removing backticks in order to work in PostgreSQL