Programming business

Hello everybody,

I have a question concerning the programming business. I have a customer and he asked me to write a program for him. He willl pay for the program. The program will consist of creating a form so the users can input the info, the info then will be store in a db and at the same time, the info will be sent (as a text file) the to him. Now there is a database involved. He also need to access the db to do some inventory (but no search function at this time). How do I charge him for all that? Will I manage the db and the code and charge him a maintenance fee? Or Do I just give him everything and let him manage it?