Reorganization Project

Database queries are made through the DBHandler class now.