fixed database type and other different error