changes swagger route and update db