Fix error from last commit
Added new date variable to get log entries of a specified day
Changed to PDO to enhance security.
Merge pull request #3 from MichaelSteurer/master

New Date Variable and moved to PDO for security reasons