Added functionality to db adapter to support null values, and set them as such in the DB.