fixed db setup. should be before restart not after setup