saverelationfromdata method
Small fixes
Fix timestamps