switched database to pq