Prevent database destruction on connect

Adds the missing do_init check to prevent your database from exploding.