Added EventHandler and some PHPDoc comments
Added DatabaseObject interface