Db revision

Putting this shit in @brentjo