Fixed #5 : Scalability (again)

Using transactions seems to do the job