Adding unique for database