Update init.php

added upsert for