Specify order_by's with HASH

Ensures compatibility with other RDBMS backends especially when quoting is
turned on.
Let backend choose formatting for DateTime objects

Ensures compatibility across other RDBMS backends.
Group by all selected columns

Ensures compatibility with older versions of PostgreSQL.
Merge pull request #19 from mcsnolte/pg_friendly

Pg friendly