fix createDB() and deleteDB()