modified the database module to allow for an alternate test database