Fixed the bug

Fixed database type bug by some  type converter