Added LOB handling and initial draft for DB API.