updated db encoding