fixed pgdb pattern matching