got it working with local files. adding in a database, storing files as strings