Add logic to store the number to database