fixed db creation issue