Removes broken users and database sharing.