how to setup the database and web interface