serve http
connect to mysql