Last commit - added SQL, fixed the last few bugs