initial attempt for abstraction; druid works with Derby as default

The reason that I had to use different statement for derby is the data type.. derby doesn't support many data types, so I couldn't use LONGTEXT for payload.