working version of smellie with configuration database interface