config db conn
move files & implement router