Some things
1. Tab indentation in .htaccess
2. Catch exceptions performing queries
3. Select query method (experimental)