def db_async(request): results = yield from app.peewee.query(Test.select()) return [t.data for t in results]
def db_sync(request): return [t.data for t in Test.select()]