process stores after commit

process stores after commit. 

The current implementation causing a lock timeout because we are uploading the file inside the transaction.

Do you think this is risky business?

@osheroff @staugaard @dragonfax