add sql to quere posts to social network