Updated to update or create on the database table.