Autoincrement Database

Converted database to use an autoincrementing primary id.