Automatically apply registry database migrations when necessary