Fixed databases cleanup
Add new cache options