Copy over mapping_session_id from the master db

Even if there already is a mapping_session_id in the master database,
we need to copy it over to the current database