Single Database Query

def db(self, request):
        '''Single Database Query'''
        with self.mapper.begin() as session:
            world = session.query(World).get(randint(1, 10000))
        return Json(self.get_json(world)).http_response(request)