Return optionals from #getId and #getName in TsdbStore

#11 should be merged before this.