Core: added column 'settings' in global_attributes table, updated demo data, fixed type in sql queries.