Dbh now works with selecting, updating and 'deleting' of contracts. (!!UNTESTED!!)