database config loader and factory singleton loader