@rohara yeah i realized where the problem was the second i stormed out of the building :D

Setting the sql_connection to undef would be a bit better i think, because we'd get rid of the warning.