Create pgsql_check_quries

Script for checking number of active and running transactions.