Make db not to save empty rows