Added new SQL interface. Added docs.