factor out Database#sigs