basic server and db