Bugfix release 0.5.2. Fixes are broken migrations (SQLite changed its behavior). This may have left databases broken, but considering I'm probably the only user, didn't implement automatically fixing them. Also fixed a constraint SQLite couldn't actually enforce.