Clean up WAL files during reset

WAL mode (enabled by default on iOS7) creates a -wal -shm file that should be removed during a reset or failed migration.
Switch from spaces to tabs for indenting

Matching existing style.
Merge pull request #30 from davidogren/master

Clean up WAL files during reset