add functionality to get next possible stock id for new stocks