added in sql for 2 way messaging feature