Save data to database from HTML elements.