For creating a database and tables. I would recomend first checking into the tools that you web host is providing. Most usually include a good MySQL database managment utility. That will allow you to creat a database as well add and edit data.
As for retreiving, adding, and editiing the data using php there is tons of real quick one or 2 page tutorials all over the internat on doing that. I recomend a bit of research.
On incremanting the number, that is fairly simple. Once you have the number from the database do a bit of math
$next_number = $db_last_number++;
the ++ is the same as +1. Then you just take that value to the form and when the form submits run an update query on the database to change the number to the new value.