Fix convert database to unique#2

*Fix convert database to unique#2