FIX: Backticks for columns and table names don't work in postgres

This patch uses Rails' built in functions for quoting tables safely, so it should work in mysql and postgres.