logging if we should rebuild the database