Edited get_body logic for adding to db