logging to local and SAE database