Database: added $onConnect event to Connection