completed sql, ready to code and test!