Check that connection exists before creating a new model
Add a getConnection() function for easier access to DB connections
Fix for model.delete() should use the 'delete' view vs 'all'

* 'all' is special and was causing errors