Added loading and handling of mysql username and password for flushing.