Add table & procedure to maintain last-used IDs