initial config and postgres abstraction