Modifed DB, GlobalParams methods in layout