save sync error info to database