Made *db* dynamically rebindable for now. Not guaranteed to stay this way