You can certainly change the crawler's database connection from "localhost" to an IP address on a different machine, but I am unsure how that works with that type of proxy (I had to look up what a socks5 is). Sounds like it can work though.
If you get what i mean :P
I assume it's possible if I just change some of the curl options in the crawler code