Postgresql functions added, sql claused added(limit, order by)