Refactor "storage" to property.

Allows "db" to be a proxy. Remains backwards-compatible with existing
code.