minor changes, mainly changing the action DB wrapper to a transaction