finished the whole factory
Added the option to read the data from a database named config with the table element(id, type, value)
something