db and front-end