Fixes versionable database objects

This Pull request fixes a few conceptual issues with versionable database objects.
Furthermore, I've fixed some mistakes within the `MySQLDatabaseEditor` (they where related to the problems with the issue mentioned above).