Check for empty databases