db class bugfix for fix_data_safe and NULLs as string