Add GET and DELETE /devices/:device routes and add unit tests to mock DB failure