connecting texts received to db