Fixed bug where the improper description was displayed, refactored variable names, put all the SQLite stuff in the Database class