Overhauled some methods in Database and GUI + fixed many bugs