fixed file locations. added simple database example