switching to db.eval()-based method
switching to db.eval()-based method