Switch from POOL_MEM back to POOLMEM for db insert function.