Postgresql adaptation 

postgresql modifications and schema to adapt druid to postgresql