CMS - confirm when leaving page with unsaved changes
some DB layer fixes