add mysql procedure to retrieve all results together