Added label and reference from settings to database