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.