fixed calling db.insert without callback