adds panels and changes decimal to integer in database