Implemented get_technique_stats(db), still needs some work
Improved some variable names