Use proper memcached key and fix call to Database::query()