better db and route management