added rudimentary sql query logger
added class 'Lists' to generate sql queries

content can now be better abstracted from the database layout.