Shouldn't this be dbname()? I thought that's what we'd settled on. We really should try to prevent multiple databases from being created.