Made a start on the connection class and db layer class