added pg db and valentine controller