Added a test.db for purposely breaking things.
Now it tells you it was unable to find a version number without crashing by not adding it to any other lists. Also, I made it prettier :)
Got rid of spacing in -url
main is no longer a function, because seriously, why does it need to be a function? It is only called once.
Added URL checking. Now it yells at you if you get a 404.
Code cleanup. I longer assign values to multiple variables on one line. This should make debugging easier. I did not mess with initiating/clearing multiple variables on one line because that should not cause any problems.
Hopefully prevented infinite loop.
Decided to include test.db after all.
Full of broken things for testing purposes. Could also serve as an example of what NOT to do. Maybe.
Modified a few variable names.