Change to using sqlite to support eventual parallelisation using jug