public boolean connect()
    {
        try
        {
            Class.forName("com.mysql.jdbc.Driver");
            connection = DriverManager.getConnection(url, username, password);
            Log.logi("Connection established url"+ url);
        } catch (ClassNotFoundException | SQLException e)
        {
            Log.loge("Couldnt get connection url"+ url);
            return false;
        }

        return true;
    }