fixed db setup