The real question is why is a developer doing (or attempting to do) a DBA's job.
Do you plan on logging into production with this?