added the logic layer
added a class to dump data into database
added .txt ending