I'm not sure how it's "running" and returning an error.
It appears that you've broken the script in the course of editing it.
Download the original again and compare it to what you have.
You should also not place the admin script in the database directory.