add database struct