Fixed creating database