fix some database typose