(master) added Direct access to postgres DB