Change flag name to db