Fixed database leak. Removed old code

Removed commented out code that served as example code as it's not
really neccesary anymore.

Made sure to close all database connections when done with it to prevent
logcat complaining about any memory leaks spawned from open database
connections.