fixes to wierd characters in dbAdapter