Changing db-call following OG upgrade