Tasks 15-18 solved for MySQL