faster insertion into databsae; more accurate, too