detect invalid database configuration