#148 Escaped DB refs to support PostgreSQL module.

Escaped reference to SiteTree_versions table, ID and WasPublished fields in getVersionedConnection() method.  Fixes the issue #148 causing a Query Failed error in PostgreSQL due to trying to access tables and fields in lower case instead of mixed case.