refactoring calls to the database to remove duplicate code
/account/:id/session/:session/firstname unit tests