Finished adding backticks to all SQL queries for all functions