Move to using auto ids for all tables