Fix for mysqli output and wrong content type in router