add postgres support, turning DATABASE_URL into separate env variables, which are used in prod.cfg