minor refactoring, also normalizing all fqdns to lowercase before inserting into the database
version bump to 1.0.6