changed function name 'change' to 'edit' \& fixed wsgi db issue