Fix convert database to unique#4

*Fix convert database to unique#4