setup migration and models