Change settings column type to JSON

I also needed to change schema format to sql, because AR 3.2 does not
support JSON type natively