Tasks 3-14 solved for MySQL