Removed unnecessary functions and optimized some things in the DatabaseHandler class.