detect empty databases. #3