close existing connections before attempting to drop database