Add function to get an account by ID.