Bug gefixed in saveDb code