Take pictures and save them into database