Try limiting the number of connections in the db pool
Remove queries for things that we don't care about -- everything except for connections
Try using where and each instead of filter and all...?
Add an index for created_at