added MDS_invalidDatabase_Exception to prevent invalid databases