Changed server code to create db/ directory automatically when first
running.