To log into the system database:
First of you need to get Login as the cpanel user to the server where the system database is located (usually, CP server).
Then enter the hsphere database (usually, under the wwwuser user name):
# psql hsphere [user_name]