Saving works

Changes to database: everywhere where a binary column had to be not
null, it can be null now.