update DB and add dao for sertificats