Fixed add_bodies_to_db