accessing Mongoid database outside of controllers

How can I access the MongoDB using Mongoid outside of controllers?

I have a ruby script that gets started at rails init time and I want it to have access to the database.

The script is spawned from the config/initializers directory.

Thanks,

Alex