Fix redirect after DB is flushed
Merge pull request #25 from eugef/master

Fix redirect after DB is flushed