Parse the db settings from /etc/mogilefs.conf or /etc/mogilefsd.conf. Use a YAML config file there for bucket / prefix settings.