Beginning to generate content from database (currently does not run)