refactored PDO database functions
- fixed calculation of query time
- turned off emulation of prepare
- thrown exceptions are handled and logged in the database
- dbresult does not fetch all records just seeking to the required one
- removed unneeded init command in dbconnect
- some renamed variables
- IDE supported PHPdoc comments