Add a callback version for the config function

+ Add port in the config file
+ Add database in the config file