Insert procedure working, but failing to execute when program is running