worked on implementation of type-overlay and select
added condition for postgres