Jormun: sqlalchemy scripts corrections

there were some problems with the sql alchemy script:

 - dumb stuff on ptobject (i don't know how i came in the files)
 - branching problems