Fix the DB representation of message flags in the acc module

* storing flags as strings rather than bitmasks prevents flag conflicts
  when doing flag modifications in the script, then restarting the proxy
* similar usrloc issue was fixed in commit 98b6b0437
(cherry picked from commit f90e347e281b555f89ba05226175ac8d9f07c4ed)