Change Project Existence Check to DB

Check the database for the existence of a project.
To allow for case insensitive filesystems project
names are considered to be case insensitive.
Merge branch 'master' into project-exists-db
Database Existence Comments and Optimization

Explain the usage of COUNT(*) being greater than
zero for existance check. Also add a slight optimization
by limiting the SELECT statement with LIMIT 1.
Merge pull request #64 from KSHSK/project-exists-db

Change Project Existence Check to DB