The client could reconnect very quickly, before the database has session
has been commited which will result on the upload failing. Therefore we
make sure that the implicitely opened transaction has been commited
before we send the response.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>