db config now can load with  environment variable APPLICATION_ENV
add test cases