Updates to create_tables.sql to correct get_next_id()