database config loader and test cases