fixed bug with not existed database file