Add close() method
Don't require Slim application object in DB constructor
Improve comments/formatting
Start of unit tests
Improve documentation