cleaning up dmattribute
improved sql error output
added debug msg output when accessing db
fixed ambiguous elements in view
fixed read only views (skipped)