Store entire db to url mapping in memcache

MassMessage::getDBName now maps the entire dbname to url
array when first called, then stores it both in memcache
and in PHP.

Change-Id: I861e92c03819254b41657c00107e263a5faf77ba