Connecting to db on jsp pages created

Plus logging, keeping session and few samples.