Help with FileManager / Postgres upgrade problem

I need some help again … after changing a key it looks like FM3 is stuck trying to do the database work.

When I open my app, FM3 is upgrading the file and then seems like it’s stuck and doing nothing. I can see the yellow upgrade window, also looking at DebugView I can see FM is executing a query and just nothing after that.

If I copy the query and execute manually on the database, it works.

What am I doing wrong?

This is where the app stops:

This is the last line in DebugView:

And using trace:

Searching for the issue I found that the FM query is locked by another FM query. When I kill the task in postgres the app then continue.