Add most of SQL Functionality, untested.