Fix bug in db.Exec