Fixed the bug for unique DB name.