NEW: Allow 'null' limit for database queries (closes #3487)