This is most easily achieved by using MySQL as FrontlineSMS's database engine. This can be activated via Settings -> Database Settings in FrontlineSMS. You will also need to have access to a MySQL database. If you need more info on how to do this, I'm sure we can help.
What are you wanting to do specifically? Are you just wanting to take the data you receive via text and insert it into the MySQL database and maybe do some processing and queries against the db and send it back via SMS? If so, that is super easy to do via external commands.
You've already got all of the necessary pieces in place with your WAMP environment. Just feed the information to an external PHP or Perl script that will take it as a standard HTTP request, process it like you would any other HTTP request, and then pipe your data back to the user.
If you're just wanting to stick results in the database, that's even easier.
Hope this helps. If you need help, feel free to contact me and I'll do my best.