fix latest pony bugs: add @db_session