Fixing db migrations