Add final code for database update check