added response for unknown type
make construct working in database.class.php