add database contents and fomatting them