Refactor insert to use my dbManager class