Set up daily db trim

Closes #549