Updated app to use postgreSQL