Use config for db

Adds config to saveItem, searchItem and deleteItem. Makes possible dynamically to exchange the used db.