add unique index when creating db