refactored core, MongoDB; added MySQL