Using a config file to choose with database driver and connection to use

Hi, I did some changes to work with a config file, I followed the vxcage project to make this, copying some things, please forgive I forgot to put your copyright, If you agree with the changes then I can put it ...