Update shorten.php

Updated new URL insert procedure to add an update to write the URL back to the database.