Fixed issue #50.

When you try to open another database withou close the previous one
the program was returning an error about a certain table.
I fixed it by calling the closeFile function before you open another
file.