set up server and db