Fix db creation