CDB-2960 Fixed options not being stored properly due to incompatible PG type. Now JSONized