modify main and SQLService