fix for pg
fix group by
initial commit
using markdown