Employee number check fix.

Fixed code checking uniqueness of the employee number.  Also added
missing sql scripts.