changed function call of sync in delDB