refactoring: setting up mysql connection in db class
unit test of 'items' routing