Updated gitignore to exclude log and swp files
Updated Database to use the share difficulty instead of the target difficulty