replace t/database.t test plan with done_testing
PERL-219 Fix JS error message test

While the error message changed in MongoDB 2.4, the string "SyntaxError"
was present since at least MongoDB 1.8, so the test now checks for that
string.