Added db capping function to parser