Bad db api calls; getDoc and saveDoc instead of get and save