front-end connected to DB