add backtick for db queries to prevent postgresql errors
remove backticks around table names