Added functions to retrieve all information from the database