change name of add function to insert; fix import