Add comments and migrate getDefaultConnection() to BaseAction