Adding function to retrieve all the tables