Make db creation idempotent