Fixed lots of bugs in ConvertToEID. Redesigned the database to deal with
Android inability to autoincrement a no null field using insert.