Added logic in emar.js to prevent empty data from being inserted into database. I still have to make sure the number fields are integers or floats and not stings.