be smarter about checking for existing db and role