adding function that registers tweets in sql db