Make dirwatcher work even if the database is empty