Implement database.connected