fix psql background job problem