Fix: Edit: Don't let prices be strings

The edit page was adding prices into the database
as strings, which causes a minor issue when trying
to calculate sums. Also place a few guards against
this happening in the future.