Moved database login from code to script parameters