completed SQL functions