Refactoring of coreUsers.php, removed old mysql dependency

Removed old dependency sql_get_all_where().
Made coreUser methods to not output to the screen.