Feature/sql interface

Not sure this comment should remain there...