Use returned db
Check to see if db already defined