add dynamic directory for db_class