extract bug from bugzilla using postgressql