[server] Remove unused SQL related codes

We can get back the code by checkout the revision:
50cd1d34ce8675517afccce99a3cb71ef14635b1
We can tag the revision to get back easily.