+Added database connection factory.