fixed update bug where meta info not updated got dropped from the db

also tested for the cases where one wants to update the meta info itself. Solves  #22