Edits: adding more basic db interaction