add sent and received to database