Verify getDatabase() != null

Another idea could be to not have any defaults, making it easier to verify the configuration