Separate ID table to make SQLAlchemy easier

It'll also make other DBs easier, if we ever bother