SQL - inserting yearmonth variable