Frequently throughout the code base the site id is appended to an element id entering the database. This should be done within MM.db.
MM.db is also arguably missing an exists() function and an update() function. The exists function would return true if the collection name exists. The update function would update a specified element within the db with new information passed in.