More DB stuff and wrapped up the webview