Added clearDatabase and updated initDatabases