updated store to allow adding to the db