ARNM-3: DB queries optimization