edited some methods

Now works adding to temporary DB.