make db setup script robust to existing databases