Store -1 in DB when field is empty