Not sure if I'm reinventing the wheel here, but I wrote a bridge between Bitcoin and Postgres:
https://github.com/tensorjack/coinbridgeIt has a convenience payment method that uses "move" if possible, and "sendfrom" otherwise. Possibly useful for websites that have a lot of users crammed into the same wallet. Also has a transaction confirmation listener (for walletnotify) which auto-updates Postgres.
Just thought I'd post it here in case it's useful to someone.