Switched to an object-oriented approach for database queries, rather than lispified sql statements; Added documentation.