fixed student search + db.php

students can now apply for multiple positions without reloading page
fixed a typo in db.php