Update database configuration to validate shard spaces before making db

Fixes #860. Update the validate method on shard spaces to optionally check if the database exists.

Have a look @toddboom