Strip leading slash from database name.
Add logging output for database names in mongo.