[update] changed the SQL to fetch notifications

Now the Query goes to the "notification" table and fetches all
notifications of friends of the current user