call all addtodatabase function