failed to update database