Fix db setup