Crawler.php was modified, its separable functions moved from to external files output and db.