fixed checkout working on inserts to db