* fix tee append * convert DB table names from var to const * fixed file modes * ignored gosec where relevant and safe