Added initialization middleware to save from empty DB madness.
Merge remote-tracking branch 'origin/master'