add db & some routes