bug in db setup fixed