added the exclusive control in database creation.

experimental on rspec.