bugfixes plus auto-submit edits to database