removed use of database object in web_services plugin