MyPicsDB performance optimizations