Fix wrong db pathname issue