start adding db insert code