Updated sync database code to work against update webconsole version.

Fixes #1