Updating a user to be read only

Refactoring the add_user code in db so that a user can be updated to be read only.