Added commit() instruction after creating new db entry