fixed SQLiteConstraintException #3