Added licence file
Merge branch 'master' of https://github.com/titaniumuk/database
Added singleton function