Refactored database update checker