Added INSERT & DELETE sql functions