- fixed bug which cause creating database incorrectly