Does dynamic changing content in html affect SEO?

I have one HTML layout and I’m showing content in it from a database, so it exists only when a user goes to a link on my website. Meta tags are also taken from DB. Does it affect SEO? Wouldn’t it be better if I created many HTML files for all different content?