Saving to db and random button