Fixed DB Error logging.

- Issue with class_exists not using namespaces for Phpr\Trace_Log, stopped exceptions getting logged to DB.

- Phpr\Error_Log will attempt to connect to database if database connection has not yet been established.