Better error detection if db connectivity isn't available
$_SERVER['REQUEST_METHOD'] not reliably set apparently