How to reduce database size

If disk space on the server is your issue, you could move images to S3.

You could use a rails console command to delete closed topics in a category.