account repo get_all code cleaning