fixes for oracle

newer versions of awesome_nested_set break on oracle
oracle driver doesn't know that ActiveSupport::SafeBuffer should be
treated as a string