Fix access wrong db