cb for db lookup