fixing the db column name translation in db lookup functions