update all references to default grid project code; reorganize a few lines of code within utils.db.connect()