You should not be outputting anything before the header call unless your using output buffering.
So this
echo "Meta-Tags updated successfully.";
header("Refresh: 2; url=admin.php");
should be
header("Refresh: 2; url=admin.php");
echo "Meta-Tags updated successfully.";
or place 'ob_start();' at the top of your file.