fixed an issue on database creation