fixed resetDB()