Update db.py

SQLFORM.grid functionality added to Configure Datastore and Template pages