Changed database to postgrel