Update sql_upgrade.php

The manually insert of the openemr version has being removed and added the code to select the version form the version table.