Why use a global variable when you can import db?