Sending CallerID to Another Program

I was wondering if there is a way to send incoming caller ID to another program using freepbx. A program that can bring up information on the caller and past conversations. I dont need a program to store that information it is stored on a database currently. i just want it to where when the person calls in it can auto bring up there information which is stored off of there caller ID. So i just need to send the incoming caller ID to the data base so that it can pull up the informaion. Any way to do that?