Changed method of storing data from file to SQLLite (currently not fully
work)