add support for postgres datastore