reworked proxy module to store proxies in db