Fix database setup rake tasks under jruby/jdbc adapter

The current rake tasks used to create the database are broken under jruby due to it using PGconn.quote_ident (which only works with the pg c extension). This fixes it to use a quote method that will work under all implementations.

I couldn't figure out how to add a test case for this since it's a buried in the rails 3 rake task, but I think this should be good for all setups. And the rails 4 test cases you've added should cover this once the jdbc adapter works against rails 4, so that should eventually provide some coverage.

ActiveRecord's quote_column_name is equivalent to pg's quote_ident.
Under activerecord's default adapter it actually just calls quote_ident,
while under the jdbc adpater it provides a ruby-based implementation.