beautified pagelayout with sql-connection errors