adds connection file for migrations
applies header partial