fix set-public in db