use PgSqlScript for commands
add StringBuilder,AutoResetEvent and lock to get 260 points