Add support for local backups.

This commit adds support for two-level sharding by username,
explicit username and database specification, available to the format
string speifiers as 'user' and 'db'.