database communication