Got the add format code adding data to the db.