json builder tested. control_type added to database