Added test to make sure database connection is lazy. Modified the 'connect' method to achieve lazyness