DB Actions

Implemented the db actions (save and read)