improved migrations, fields saving to database