basic site layout and db connection