Where Should We Write Code In Postgresql