setting up migrations and databases