Tips #3 when hiring Freelance programmers:
Always make sure that you write that you want the sourcecode and the full rights to do anything you want with it.
You might need it sooner than you think. Sometimes there are a small change on a website and your application may not work and you might have to pay the same programmer to fix the error. Or in the worst case senario you will have to find some other programmer to rewrite the whole application because you cant get hold of the original programmer.
Lesson to be learned: Always tell the programmer that you want the full sourcecode and the right to do anything you like with it. Make sure he agrees before you assign him the project.