interaction between webview and database (not finished)