fix the database type problem