ADD: firebase read and write for compass direction