Samsung's SmartSSD comes with a Xilinx FPGA accelerator that can be used to execute code without having to move data outside the device. And their open source SDK includes domain-specific routines including databases.
See https://xilinx.github.io/Vitis_Libraries/ for details on their software stack.