Save compilation flag on db.