SQL bug corrections in Course and Inctitution

Signed-off-by: Andre Bernardes <andrebsguedes@gmail.com
Signed-off-by: Brenddon Gontijo <brenddongontijo@msn.com>
Signed-off-by: Jonnatas Lenno Lima Costa <jonatas_lenon@hotmail.com>