I understand that I can take any language and create a higher level version which will provide functions which can access some data source.
But I still wonder if there is something more to how one could "truly" intermingle logic and data - one example might be a language which is executed directly in the DB, just spit balling.