more layout, adds connection with pg