fixed missing ownerships in sql migrations, leading to errors on xml.info?type=status