fix check db error