That goes far beyond CSS. CSS is just how websites are styled - the different functions for reading and displaying the information in the database and rendering the website itself would probably have to be done in some combination of PHP and HTML plus using CSS for styling. It depends upon what kind of a database it is and how big of a website it is.

I know PHP, (X)HTML, and CSS, and I also know how to access most forms of SQL databases using PHP, but I can't code your website for you; however, if you have any specific questions you would like to ask me, ask away. You can PM me, send me an IM message, or email me your questions.