bool DatabaseHandler::login()
{
    if(db.isOpen())
        db.close();

    if(!db.open()){
        return false;
    } else {
        createNewTable();
        if(!createTableSubjects("subjectFirstSitting")){
            return false;
        }
        if(!createTableSubjects("subjectSecondSitting")){
            return false;
        }
        if(!createPasswordTable()){
            return false;
        }
        createAdmins();
        return true;
    }
    return true;
}
TableManager::TableManager()
{
	currentAddress = 0;
	createNewTable();
	currentFunction = NULL;
}