Finished my part of the Queries.

Almost certain it works. I tested it on MyPHPAdmin.