Rewrite first database section