Optimised threading and populated database