Small bug-fix and added sql-script
Merge branch 'master' of https://github.com/tOgg1/PotentialNinja