fix db name undefined