Feature/sql interface

Probably not. Removed it in e842bc1cb3e1577dbc0b70fadcc28d0a93afacc7