Added somemore functionality to the main function. Also added the quit command to the main function for when you are done making quieries to the database.