Reworked id
Migrate db