Restore DATABASE_URL even if it's nil in conntection_handler test

- We have to restore DATABASE_URL to its previous state, even if
  previous test is nil or anything.