Fixed a bug where the database could not be created if the data folder doesn't exist
Updated the copyright notices
Use the appdirs Python module to set the user data directory