This doesn't look right, adding a new value the first time inserts NULL in the db.