Inserts/Updates info on the database.