Custom error-handler, pdo-singleton factory