Fixed test setup to correctly create test DB

Also, required version of lib/pq is today's commit.