bz19858: Fix handling device sync info.

Changed the backend to use work with the sqlite device database
instead of the JSON one.

Removed check for max_sync_size from the frontend code.  Having the
frontend access the device database has threading issues and the
backend uses the calculated max sync size anyways.  It seems best to
just have the frontend trust the backend.