Using correct database for reversion atomic decorator