change database type