Changed references from 'lib/' to 'db/'