set up handler, local server, db, and login