If I were you I would have a read of this.
I don't think that the creation account should be taken chronologically:
Day 1: Let there be light (1:3).
Day 4: Let there be lights (1:14).
Day 2: Let there be an expanse to separate water from water (1:6).
Day 5: Let the water teem with creatures and let birds fly above the earth (1:20).
Day 3: Let dry land appear (1:9); Let the land produce vegetation (1:11).
Day 6: Let the land produce living creatures (1:24); Let us make man (1:26); I give you every seed bearing plant...and every tree that has fruit with seed in it...for food (1:29).
As Futato notes:
Genesis 1-2 proclaims that YHWH, the God of Israel, is the Lord of the rain, the resultant vegetation, and life. This central aspect of the message of Genesis 1-2 is embedded in the structure of the accounts. Why the two-fold focus on vegetation and the people that live on that vegetation? Why even bring into consideration the lack of vegetation owing to a lack of rain? Is this simply geographical decoration? No, for the Book of Genesis serves as the prologue to the history of Israel. Genesis makes the point that the God of the nation of Israel is the God of Abraham, Isaac, and Jacob (Genesis 12-50), and that the God of Abraham, Isaac, and Jacob is the Creator of the heavens and the earth (Genesis 1-11). The God of Israel is the Creator. From the beginning the God of Israel, not Baal, has been the provider of the rain that is the pre-requisite of life. YHWH God of Israel has been the Lord of the rain from the beginning!