fixed issue with database not being created during tests