changing sqlite grouping because of alerts, fixing posts link and adding browser detect gem