FIX: improve separate table migration to keep ids (PR #64)

Fix ids if neccessary

GitHub