Added the ticks(') to the sql queries.