db changes and changes to quiz class

Made quiz class just accept an id. Also added functions to quiz class
to make quiz summary page easier to create.