remove a direct call to the db in core, add a test db, a test environment and a test suite