database-level queries added