fix typo in database/friend class
anonymous function
use readfile() for including non-PHP file