Upgrading database and added unique requirement