adding pg db stuff