Fix db.py: use getDb() & fix grammar error

 - use getDb() to get normal database or test database
 - in a string, there is no closing apostrophe