added functions for csv inventory insertion