define DB and XML layouts