Adding some tabs to backstage/database.php

Put all the { on a new line and adding braces to the ifs/whiles etc that
only have one line