support postgres as a datastore option