Changed database to use pg