Adding multiple database support, and trigger on delete.
Adding db caching