save to db upsert sections