Sharepoint allows you to utilize web service calls to retrieve and manipulate data. To do this though you will need to be able to write CAML to create your queries. I found this site pretty useful when it came time to really dig into creating my own custom CAML-based Sharepoint queries.