postgres compatibility
deleted template files
merge postgres compatibility