Dynamic Pages

Can you create dynamic page based upon imbedded HTML that connects to a database collection?