Tidy up indentation in a few places.
Merge pull request #350 from phad/master

Tidy up indentation in a few places.
Flag for synchronous sqlite write.