private Connection getConnection()
    {
        try
        {
            Class.forName("org.sqlite.JDBC");
            return DriverManager.getConnection("jdbc:sqlite:" + System.getProperty("user.dir") + "/main.db");
        }
        catch (ClassNotFoundException e)
        {
            handleError("Cannot find SQLite driver!", e);
        }
        catch (SQLException e)
        {
            handleError("Cannot connect to database!", e);
        }

        return null;
    }