Adding unique constraint and autoincrement to db init script.