Fixed overwriting registration issue.

ID counter will now increment with each registration. Application will
not handle reassigning deleted IDs to new entries.