fix client timeout, adding db-sync mechanism