Magic to work like with db.