[29] Reworked DB queries procedures prototypes.