fix config table bug, update db