add database communication