added db facility to the site

now it loades media, reviews from the db