[Server] Add database config file
[Server] Refactor loading process.