sql function to read an account and tests for it
api and service layers read an account by a session
documentation to get an account