Fix for database update