Database changes

updated code example and small language changes.