Possibly some minor improvements to db performance.