Move model to use text not varchar for data. Move to JSON later once sort out nice way
to test.

Fixed some urls.

Added some logging.