Fixed attachment database problem
Removed debugging message