Fix database type