refactor insert user sql