change database encoding to binary