update tests to stop using the db