installing modules and migrating db before publishing