fix db case sensitivity issue