add some indexes to speed up operations
fix indexes
add cleanup methods
Change cleanup time to 30 days