Feature #5157 - Migrating OrderDAO to the new database model.
Feature #5157 - Wiring new media model into EJB and extra Gallery application consumer.
Feature #5157 - Postgres migration.