changed to raise 404 error on middleware and added get dbconfig list route