Update server.go

i change the db from mysql to sql server, and rewrite some function