Changed some sql methods on Course and Institution

Signed-off-by Fabio Teixeira <fabio1079@gmail.com>