Fix automatic database updates