I don't know of a turn-key solution, and I'm not sure what kind of logic you are looking for this app to have built-in, but I'd suggest Excel, especially if you have WM6.
Aside from that, there are some great 3rd-party database programs that are fully customizable, allowing you to create your own database with formulae for fields.
HanDBase comes to mind.