credit init and sql log