added SQL queries for the user feed