Feature/fix pr 9

/to @ritch 
/to @kesavkolla

This PR fixes the SQL statements proposed by https://github.com/strongloop/loopback-connector-postgresql/pull/9