def insert_mention(self,tweet):
        #user_id INT, target_id INT, day DATE, weight INT
        replies = tweet['in_reply_to_user_id']
        replies_screen_name = tweet['in_reply_to_screen_name']
        date=  time.strftime('%Y-%m-%d', time.strptime(tweet['created_at'],'%a %b %d %H:%M:%S +0000 %Y'))
        if replies:
            keys = [tweet['user']['id'], replies, date, 1]
            try:
                    cursor = self.con.cursor()
                    cursor.execute("SELECT * from interactions where (user_id = '"+str(tweet['user']['id'])+"' AND target_id = '"+str(replies)+"' AND day = '"+str(date)+"')")
                    node = cursor.fetchone()
                    if node:
                        total = node[3]+1
                        cursor.execute("UPDATE interactions set weight = '"+str(total)+"' WHERE (user_id = '"+str(tweet['user']['id'])+"' AND target_id = '"+str(replies)+"' AND day = '"+str(date)+"')")
                    else:
                        insert = "INSERT INTO interactions(user_id, target_id, day, weight) VALUES ('"+str(keys[0])+"','"+str(keys[1])+"','"+str(keys[2])+"','"+str(keys[3])+"') "
                        cursor.execute(insert)
            except Exception, e:
                print "DB Error - insert_mention: ", e

            try:
                cursor = self.con.cursor()
                select = "SELECT id from twitter_users WHERE id="+str(replies)+";"
                print select
                cursor.execute(select)
                node = cursor.fetchone()
                if node:
                    print node
                else:
                    insert = "INSERT INTO twitter_users(id, screen_name, total_tweets) VALUES (" + str(replies) + ",'" + replies_screen_name + "', 1)"
                    cursor.execute(insert)
                    print "added"
                    ################
            except Exception, e:
                print "DB Error - insert_mentionAA: ", e