public DataTable ExecuteQuery(string query) { DataTable data = null; db.OpenConnection(); data = db.GetData(query); db.CloseConnection(); return(data); }