fixed bug while creating database