Added some hackish code for creating/loading test database.