Changed the get_single and get all functions a bit to fulfill our needs.