insert(), insertIgnore(), insertUpdate() functions implemented