generate models and migrate initial db