update db and create users routes