first bash at postgres support, abstracting out datastore impl choice to boot-time choice