fix dbpoll bug, so use with mysql