store revisions on DB