get all months between two dates sql