Fixed bugs with PhpLogger

There was a bug where a certain PDO statement object was being printed,
causing encoding problems.  also added "app_version" field in the create
table statement.
Fixed an issue with the Controller

Fixed an issue with the Controller not returning an empty array if there
is no data.