Put back dbtype encoding