public void doJob() { // Check if the database is empty if (Account.count() == 0) { Fixtures.deleteDatabase(); Fixtures.loadModels("data.yml"); } }