mysql queries for is631 final project