fix: load config before init db