Updated to use database. HTML generated correct. Have error with resources URL mapping.