Solve some encoding problem in database
Change python package pg to psycopg2
Check the limit of hot pages