added function to store objects: storeObj(), including tests and
helper functions
added functions to read obj from db