Closes #159 (closed).
We can eventually try to test it with a bigger database to see how it performs.