Fix error when writing to db for file diffs
Fix error when writing to db for file diffs

Recipy crashed when writing file diffs to the database. This had to do
with not properly opening/closing the database. This issue is now fixed.

recipy/recipy,recipy/recipy