Cleaned up the queries and added lastmodified to the questions and answers tables