[0.0.5m] Updated SQL functions to return their status