Added a function to determine validitity of the log file.
Added a models file forthe database.