Getting names, offices and emails from the database