Refactor access to tbl_users and user metadata objects