Fixed create database file