use SQL to replace serverStore class