I know way too little about Datalog, but it goes something like this:
1. create helper functions to create/alter/drop tables.
2. create helper functions for insert/select/update/delete queries, etc. Probably with the same syntax as in Datomic / Asami / etc.
3. each table its name would be a Datalog "attribute", and would have 2 columns: the "id" and the "value". "id" would be indexed, "value" would be a value or a foreign key to another table.
I guess writes would be slow if everything you insert into the DB is indexed, not sure what the other downsides would be.