We have a database engine layer that can wrap around multiple databases. Today though we're mainly using SQL since it's so fast with the right indexing. Soon though we're planning to support search using embeddings too. We'll probably use an optimised db for that like faiss or ngt.