retrieving data from database using arduino and gsm/gprs 800

hello everyone

I wanna I ask how can I get the code to retrieve data from database using arduino and gsm/gprs 800L ?