Changed the DB logging setup
Small code refactoring
Performance with large number of positions improved

Now we only retrieve the positions we need (in
batches of 100), and calculated attributes are now
only computed when they are requested.
Performance has been greatly improved with big data.