Added context argument to db converters
Fixed MySQL aggregation failures
Removed hopefully non-necessary code