Webservice implementation and database access added. Interfaces amended.