Implement wrapper class of database and read settings of database from yaml file