noted some mysqlstuff
basic flow ready up to actual db query