When you compiled SER, are you sure you had uncommented the following line: DEFS+=-DSQL_ACC in Makefile of acc? This file is in ser/modules/acc. If you wish to enable SQL accounting you must do it first.