public static synchronized DatabaseConnection getInstance(){
        if (DatabaseConnection.instance == null){
            DatabaseConnection.instance = new DatabaseConnection();
        }
        return DatabaseConnection.instance;
    }