Database connection class

cf title