It would help to see the output, since we can't run your app.
A few asides:
1. Doing 2 queries is unnecessary.
2. The semi-colons on 7 and 8 are unnecessary.
A few asides:
1. Doing 2 queries is unnecessary.
2. The semi-colons on 7 and 8 are unnecessary.