beginning to draft/stub out database interface
refactored a method to be expressive and quiz specific