[hatohol-config-db-creator] Extract some registering blocks from main() as functions