use ActiveRecord::Base configuration when different with config file

this is related with my issues #309 . So I tried to create this solution. when it different with config file, will use the ActiveRecord::Base configuration instead. Please review it, I am still newbie so maybe the code is not good enough