fixed db lookup issue and master key not existing in dict