set database to proxy, added some comments