Each notary public shall have power to take and to certify the acknowledgment or proof of powers of attorney, mortgages, deeds, and other instruments of writing, to take depositions and to administer oaths and affirmations and also to take affidavits to be used before any court, judge, or officer within the District.