switched to prepared statements, fixed some math, using the concurrent executor