Added a insertIntoDatabase and got the update working