moved db init from open to create