Base DB and routes