updated PostsMost-new sql for db schema and takes groupid
homecontroller passes group id