Update Database/Query test case to use fixtures.

Using fixtures means the test case doesn't need to create tables or
insert records.