@scathach i have zero issues with SQL, it just werks and is widely supported.
datalog might be fine (never used it), but the choice isn't between datalog and SQL. it's between nosql garbage languages with no guarantees and SQL which is time tested in language and implementations.