looking up database information

Is it possible to create some type of database file, and have text labels on counters draw information from that? For example - say we had a database that had the following columns:
Unit ID
Unit Name
Unit Attack
Unit Defend

If we, then created a counter, we could have a dynamic property for that counter that provides the Unit ID for that counter, and then have text labels that look up the name, attack, and defense for that ID number.

If that is possible, how? Thanks for any help you can give